package communal

import (
	"github.com/go-redis/redis/v8"
	"outsourced-projects/config"
)

func Redis() *redis.Client {

	redisClient := redis.NewClient(&redis.Options{
		Addr:     config.InitConfig().Redis.Addr,
		Password: config.InitConfig().Redis.Password, // no password set
		DB:       0,                                  // use default DB
	})
	return redisClient
}
